package com.py.net.client.input;

import com.google.protobuf.MessageLite;
import com.py.net.proto.ChatProbuf.CTSLogin;

public class CTSLoginBuilder implements IInputBuilder {
	@Override
	public MessageLite builder(String lineStr) {
		String[] param = lineStr.split("&");
		if (param.length < 2) {
			System.err.println("登入请求输入有误");
			return null;
		}
		return CTSLogin.newBuilder().setName(param[0]).setPwd(param[1]).build();
	}
}
